]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Switch lightboxes off before unlock transition
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Apr 2020 12:48:10 +0000 (14:48 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 3 Apr 2020 14:44:50 +0000 (14:44 +0000)
There is no point in animating a transition with fullscreen black
rectangles stacked on top, so switch them off before rather than
after the transition.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1158

js/ui/screenShield.js

index de43d3da19ee68d4be4fac4bdbc0c9e71314a726..1107a5ce965ea4bd771d6ffb98682030c4360c54 100644 (file)
@@ -519,6 +519,9 @@ var ScreenShield = class {
             this._isModal = false;
         }
 
+        this._longLightbox.lightOff();
+        this._shortLightbox.lightOff();
+
         this._lockDialogGroup.ease({
             translation_y: -global.screen_height,
             duration: Overview.ANIMATION_TIME,
@@ -533,8 +536,6 @@ var ScreenShield = class {
             this._dialog = null;
         }
 
-        this._longLightbox.lightOff();
-        this._shortLightbox.lightOff();
         this.actor.hide();
 
         if (this._becameActiveId != 0) {